<!--#include file="../nav/admin_top.php" -->
<!--#include file="../nav_menu/report_top.php" -->

<div class="menuBg">
	<a class="menuReturn" href="/admin_report/index">返回所有报表</a>
  <div style="clear:both"></div>
</div>
<div class="margin20">
	<div style="padding-bottom:5px;border-bottom:1px solid #999999;" >{$rpt.name}</div>
</div>
<div class="margin10">
	<fieldset style="border: 1px solid #ccc; padding: 20px;">
		<legend style="color: green">过滤条件</legend>
		<div id="filter_bar">
			<table class="filtertb" >
				<tr>
					<td class="filtertb_l" >
						<form action="/admin_report/result" method="post" id="form1" target="result_iframe">
							<input type="hidden" id="model" name="model" value="{$rpt.model}" />
							<input type="hidden" id="action" name="action" value="{$rpt.action}" />
							<input type="hidden" id="title" name="title" value="{$rpt.name}" />
							<input type="hidden" id="downloads" name="downloads" value="0" />
							<input type="hidden" id="searchdata" name="searchdata" value="" />
							
							<table class="searchtb"> 
								<tr>
									<th>配送批次：</th>
									<td>
										<select id="sendpi_id"  class="textBox" >
											<?PHP
											foreach($rs as $v){
												echo '<option value="'.$v['id'].'">'.$v['code'].'('.$v['senddate'].')</option>';
											}
											?>							
										</select>
									</td>
								</tr>
							</table>
						</form>
					</td>
					<td class="filtertb_r">
						<button onclick="fnView()">预览</button>
						<button onclick="fnExport()" style="margin-left:20px">导出报表 </button>
					</td>
				</tr>
			</table>
		</div>
	</fieldset>				
</div>
<div class="report_outer">
	<div id="result_div">
		<iframe id="result_iframe" name="result_iframe" style="width:950px;height:450px;border:1px dashed #CCCCCC;"></iframe>
	</div>
</div>
<script type="text/javascript">
$().ready(function(){
 
}); 
function fnGetSearchData(){
	var ret={
		sendpi_id:$('#sendpi_id').val()
	};
	return JSON.encode(ret);
}
</script>
<!--#include file="../nav/admin_bottom.php" -->